package cn.rkylin.oms.system.project.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.rkylin.core.service.ApolloService;
import cn.rkylin.oms.system.project.dao.IProjectManageDAO;
import cn.rkylin.oms.system.project.vo.ProjectVO;

/**
 * 项目服务层
 */
@Service("projectManagerService")
public class ProjectManagerService extends ApolloService implements IProjectManagerService {
    @Autowired
    private IProjectManageDAO projectManageDAO;

    /* 
     * 根据id获取1条projectVO
     */
    @Override
    public ProjectVO findProjectById(String prjId) throws Exception {
        ProjectVO param = new ProjectVO();
        param.setPrjId(prjId);
        ProjectVO project = projectManageDAO.findByWhere(param);
        return project;
    }
}
